package com.yxw.live_vod_facade.feign;

import com.yxw.live_vod_facade.dto.PageUserListDto;
import com.yxw.live_vod_facade.vo.UserInfoVo;
import com.yxw.yxnet_cd_center.common.dto.PageVO;
import com.yxw.yxnet_cd_center.common.utils.BaseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "live-vod-boot", contextId = "user")
public interface UserFeignClient {

    @PostMapping(value = "/api/user/pageUserList")
    @ApiOperation(value = "人员查询公用组件")
    public BaseResult<PageVO<UserInfoVo>> pageUserList(@RequestBody PageUserListDto dto);

    @PostMapping(value = "/api/user/getUserList")
    @ApiOperation(value = "获取人员列表")
    public BaseResult<List<UserInfoVo>> getUserList();

    @PostMapping(value = "/api/user/getUserInfo")
    @ApiOperation(value = "获取用户信息详情")
    public BaseResult<UserInfoVo> getUserInfo(@RequestParam("userId") Long userId);
}
